

<style scoped>
.order-container {
  max-width: 1200px;
  margin: 20px auto;
  padding: 20px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  color: #2d3748;
  background: #f9fafb;
  border-radius: 12px;
}

/* 车次信息卡片 */
.train-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  padding: 25px;
  margin-bottom: 30px;
  border: 1px solid #e2e8f0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.train-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.train-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #edf2f7;
}

.train-badge {
  background: #3182ce;
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.train-info {
  flex: 1;
  padding: 0 20px;
}

.train-title {
  font-size: 24px;
  color: #2d3748;
  margin: 0 0 5px 0;
  font-weight: 700;
}

.train-date {
  color: #718096;
  font-size: 15px;
  font-weight: 500;
}

.train-status {
  background: #e6f7ff;
  color: #1890ff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
}

.route-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 30px 0;
  position: relative;
}

.station {
  flex: 1;
  text-align: center;
  padding: 15px;
  border-radius: 10px;
  background: #f7fafc;
  position: relative;
  z-index: 2;
}

.station.start {
  border: 1px solid #c3dafe;
}

.station.end {
  border: 1px solid #fed7d7;
}

.station-name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #2d3748;
}

.station-time {
  color: #4a5568;
  font-size: 16px;
  font-weight: 500;
}

.route-line {
  flex: 1;
  position: relative;
  text-align: center;
  z-index: 1;
}

.line {
  height: 2px;
  background: linear-gradient(to right, #4299e1, #f56565);
  margin: 0 10px;
  position: relative;
}

.line::before {
  content: '';
  position: absolute;
  top: -3px;
  left: 0;
  width: 8px;
  height: 8px;
  background: #4299e1;
  border-radius: 50%;
}

.line::after {
  content: '';
  position: absolute;
  top: -3px;
  right: 0;
  width: 8px;
  height: 8px;
  background: #f56565;
  border-radius: 50%;
}

.duration {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 5px 15px;
  color: #4a5568;
  font-size: 14px;
  font-weight: 500;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.ticket-types {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 15px;
  margin-top: 25px;
}

.ticket-type {
  background: white;
  border-radius: 10px;
  padding: 15px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 15px;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.ticket-highlight {
  border-left: 4px solid #4299e1;
  box-shadow: 0 4px 6px rgba(66, 153, 225, 0.15);
}

.ticket-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #ebf8ff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4299e1;
  flex-shrink: 0;
}

.ticket-details {
  flex: 1;
}

.ticket-desc {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 3px;
  color: #2d3748;
}

.ticket-price {
  color: #dd6b20;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 3px;
}

.ticket-count {
  color: #718096;
  font-size: 14px;
}

.low-stock {
  color: #e53e3e;
  font-weight: 500;
}

/* 分割线样式 */
.custom-divider {
  margin: 30px 0;
  border-top: 1px solid #e2e8f0;
}

/* 乘客选择区域 */
.passenger-section {
  background: white;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  padding: 25px;
  margin-bottom: 30px;
  border: 1px solid #e2e8f0;
}

.section-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  gap: 12px;
}

.header-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ebf8ff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4299e1;
  flex-shrink: 0;
}

.section-header h3 {
  margin: 0;
  font-size: 18px;
  color: #2d3748;
  font-weight: 600;
}

.section-subtitle {
  color: #718096;
  font-size: 14px;
  margin-left: 5px;
}

.passenger-selector {
  padding: 10px 0;
}

.passenger-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

/* 购票列表样式 */
.ticket-list {
  background: white;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  padding: 25px;
  margin-bottom: 30px;
  border: 1px solid #e2e8f0;
}

.tickets-table {
  border: 1px solid #edf2f7;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 20px;
}

.tickets-header {
  display: flex;
  background: #f7fafc;
  color: #4a5568;
  font-weight: 600;
  padding: 15px 20px;
  border-bottom: 1px solid #e2e8f0;
}

.tickets-row {
  display: flex;
  padding: 15px 20px;
  border-bottom: 1px solid #edf2f7;
  transition: background 0.2s;
  align-items: center;
}

.tickets-row:last-child {
  border-bottom: none;
}

.tickets-row:hover {
  background: #f8fafc;
}

.col-passenger, .col-id, .col-type, .col-seat {
  padding: 0 10px;
}

.col-passenger {
  flex: 2;
  display: flex;
  align-items: center;
}

.row-icon {
  margin-right: 8px;
  color: #4299e1;
}

.passenger-name {
  font-weight: 500;
}

.col-id {
  flex: 6;
  color: #4a5568;
  font-size: 14px;
}

.col-type {
  flex: 4;
}

.col-seat {
  flex: 4;
}

.custom-select {
  width: 100%;
}

.submit-section {
  display: flex;
  justify-content: flex-end;
  margin-top: 30px;
}

.submit-btn {
  padding: 0 40px;
  height: 48px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 10px;
  background: linear-gradient(135deg, #4299e1, #3182ce);
  border: none;
  box-shadow: 0 4px 12px rgba(66, 153, 225, 0.4);
  transition: all 0.3s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(66, 153, 225, 0.5);
}

/* 确认模态框 */
.confirm-modal :deep(.ant-modal-content) {
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
}

.confirm-modal :deep(.ant-modal-header) {
  background: #f7fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 20px 24px;
}

.confirm-modal :deep(.ant-modal-title) {
  font-weight: 700;
  color: #2d3748;
  font-size: 18px;
}

.confirm-modal :deep(.ant-modal-body) {
  padding: 24px;
}

.seat-selection-section {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px dashed #e2e8f0;
}

.seat-notice {
  background: #fffaf0;
  border-radius: 10px;
  padding: 16px;
  border: 1px solid #fed7d7;
}

.notice-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: #e53e3e;
  font-weight: 600;
}

.warning-icon {
  font-size: 18px;
}

.notice-content {
  color: #718096;
  font-size: 14px;
  line-height: 1.6;
}

.seat-selection {
  background: #f7fafc;
  border-radius: 10px;
  padding: 20px;
}

.seat-selection-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.seat-type {
  font-weight: 600;
  color: #2d3748;
  font-size: 16px;
}

.seat-hint {
  color: #718096;
  font-size: 14px;
}

.seat-grid {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.seat-row {
  display: flex;
  align-items: center;
  gap: 15px;
}

.seat-label {
  width: 60px;
  color: #718096;
  font-size: 14px;
}

.seat-options {
  display: flex;
  gap: 10px;
}

.seat-item {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #edf2f7;
  color: #4a5568;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid #e2e8f0;
}

.seat-item:hover {
  background: #e2e8f0;
}

.seat-selected {
  background: #4299e1;
  color: white;
  border-color: #4299e1;
  box-shadow: 0 2px 6px rgba(66, 153, 225, 0.4);
}

.order-summary {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px dashed #e2e8f0;
}

.summary-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: #4a5568;
}

.summary-value {
  font-weight: 600;
  color: #2d3748;
}

.price {
  font-size: 20px;
  color: #dd6b20;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .order-container {
    padding: 15px;
  }

  .train-header {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .route-info {
    flex-direction: column;
    gap: 20px;
  }

  .station {
    width: 100%;
    margin-bottom: 0;
  }

  .route-line {
    width: 100%;
    margin: 15px 0;
  }

  .ticket-types {
    grid-template-columns: 1fr;
  }

  .tickets-header, .tickets-row {
    flex-direction: column;
    gap: 15px;
  }

  .col-passenger, .col-id, .col-type, .col-seat {
    padding: 8px 0;
    width: 100%;
  }

  .seat-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .order-summary {
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
  }
}
</style>